<% if(total > 10)  { %>
<div class="u_page_box">
    <% if(!isFirstPage)  { %>
        <span class="index_page">
                <a href="/">首页</a>
            </span>
        <span class="pre_page">
            <a href="?p=<%= page-1 %>&q=<%= typeof keyword != 'undefined' ? keyword : "0" %>">上一页</a>
        </span>
    <% } %>
    <% if(!isLastPage)  { %>
        <span class="next_page">
            <a href="?p=<%= page+1 %>&q=<%= typeof keyword != 'undefined' ? keyword : "0" %>">下一页</a>
        </span>
    <% } %>    
</div>
<% } %>    